From: Pierre Ossman Date: Sat, 27 Oct 2007 12:41:04 +0000 (+0200) Subject: mmc: use common byte swap macros X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~32982^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=1fa8dd146f6bf57902602522c212040f8fa6fcd3;p=linux-4.9.git mmc: use common byte swap macros Use the more generic byte swapping macros instead of the socket variants. Signed-off-by: Pierre Ossman --- diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c index ee4029a24efd..a6dafe62b992 100644 --- a/drivers/mmc/core/sd_ops.c +++ b/drivers/mmc/core/sd_ops.c @@ -294,8 +294,8 @@ int mmc_app_send_scr(struct mmc_card *card, u32 *scr) if (data.error) return data.error; - scr[0] = ntohl(scr[0]); - scr[1] = ntohl(scr[1]); + scr[0] = be32_to_cpu(scr[0]); + scr[1] = be32_to_cpu(scr[1]); return 0; }